package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.WorkOutsideRecord;
import com.zhijian.medical.entity.vo.request.WorkOutsideRecordSearchVo;
import com.zhijian.medical.entity.vo.response.WorkOutsideRecordVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 外勤 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-18 15:27:01
 */
public interface WorkOutsideRecordService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    WorkOutsideRecord selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    WorkOutsideRecordVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 新增
    *
    * @param workOutsideRecord
    * @return
    */
    Long insert(WorkOutsideRecord workOutsideRecord);

    /**
    * 更改
    *
    * @param workOutsideRecord
    * @return
    */
    boolean update(WorkOutsideRecord workOutsideRecord);

    /**
    * 总数
    *
    * @param workOutsideRecordSearchVo
    * @return
    */
    Integer count(WorkOutsideRecordSearchVo workOutsideRecordSearchVo);

    /**
    * 列表
    *
    * @param workOutsideRecordSearchVo
    * @return
    */
    List<WorkOutsideRecordVo> selectList(WorkOutsideRecordSearchVo workOutsideRecordSearchVo);

    /**
    * 分页查询
    *
    * @param workOutsideRecordSearchVo
    * @return
    */
    Page<WorkOutsideRecordVo> selectPage(WorkOutsideRecordSearchVo workOutsideRecordSearchVo);
}